// SelSHFromGMSCommand.cpp: implementation of the SelSHFromGMSCommand class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SelSHFromGMSCommand.h"
#include "DlgChooseSupportHanger.h"
#include "DlgModeless.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

SelSHFromGMSCommand::SelSHFromGMSCommand()
{

}

SelSHFromGMSCommand::~SelSHFromGMSCommand()
{

}

BOOL SelSHFromGMSCommand::Execute()
{
	CDlgChooseSupportHanger dlg;
	while(TRUE)
	{
		INT nResult = dlg.DoModal();
		if(nResult == CHOOSEPART)
			continue;
		else if(nResult == IDCANCEL)
			return TRUE;
		else
			break;
	}

	GetModelessDialog().PostMessage(WM_NEWPART);
	return TRUE;
//	return NewPartCommand::Execute();
}